package com.Service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.Dao.BaseDaoI;
import com.Entity.Club;
import com.Service.ClubService;

@Service("clubService")
public class ClubServiceImpl extends BaseServiceImpl<Club> implements ClubService {

	@Autowired
	private BaseDaoI<Club> ClubDao;
	
	@Override
	public List<Club> getPeriodCategories() {
		String hql = "from Club c";	
		return ClubDao.find(hql);
	}
	/**
	 * 获取医院圈列表
	 * @return
	 */
	@Override
	public List<Club> findHosClub() {
		String hql = "from Club c where c.clubFlag=1";
		return ClubDao.find(hql);
	}
	/**
	 * 获取同龄圈列表
	 * @return
	 */
	@Override
	public List<Club> findSameYearClub() {
		String hql = "from Club c where c.clubFlag=0";
		return ClubDao.find(hql);
	}
}
